package miku.firstgame.net.pack
{
	import miku.firstgame.constrants.ProtocalConstants;
	import miku.firstgame.model.User;
	import miku.firstgame.net.ByteArrayEx;
	
	public class UserOnlineResponsePack extends AbstractReponsePack
	{
		public var user:User;
		
		public function UserOnlineResponsePack(data:ByteArrayEx)
		{
			super(data);
		}
		
		override public function decode():void
		{
			super.decode();	
			data.position = 4;
			user = User.parseUser(data);
		}
		
		override public function get tag():int
		{
			return ProtocalConstants.USER_ONLINE;
		}
	}
}